package com.example.demo.controller;

import com.example.demo.pojo.R;
import com.example.demo.service.ValidationService;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/emails")
public class EmailController {
    @Resource
    private ValidationService validationService;

    //找回密码邮箱验证码发送
    @PostMapping("/send/findCode")
    public R<T> sendFindEmail(@RequestParam String email) {
        return validationService.sendFindEmail(email);
    }
}
